package com.ruoyi.quartz.task;

import com.ruoyi.bizsys.service.IApplyContactsService;
import com.ruoyi.bizsys.service.IDeviceContactsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author ruoyi
 */
@Slf4j
@Component("applyContactsTask")
public class ApplyContactsTask {

    @Autowired
    IApplyContactsService iApplyContactsService;

    @Autowired
    IDeviceContactsService iDeviceContactsService;

    public void checkNewTableData() {
        iApplyContactsService.checkNewTableData();
        iDeviceContactsService.checkNewTableData();
    }

    public void clearData() {
        iDeviceContactsService.clearData();
        iApplyContactsService.clearData();
    }
}
